home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / interapplication comm / menuscripter / sources / offscreen.h < prev    next >
Encoding:
Text File  |  2000-06-23  |  620 b   |  31 lines

  1. // Offscreen.h
  2. //
  3. // Original version by Jon Lansdell and Nigel Humphreys.
  4. // 4.0 and 3.1 updates by Greg Sutton.
  5. // ©Apple Computer Inc 1996, all rights reserved.
  6.  
  7. #pragma once
  8.  
  9. #ifndef __QUICKDRAW__
  10.     #include <Quickdraw.h>
  11. #endif
  12.  
  13. #ifndef __QDOFFSCREEN__
  14.     #include <QDOffscreen.h>
  15. #endif
  16.  
  17.  
  18. typedef struct WindowOffscreen
  19. {
  20.     CGrafPtr        windowPort;
  21.     GDHandle        windowDevice;
  22.     GWorldPtr        offscreenWorld;
  23. } tWindowOffscreen;
  24.  
  25.  
  26. tWindowOffscreen* DrawOffscreen ( WindowPtr theWindow );
  27. tWindowOffscreen* DrawOnscreen ( tWindowOffscreen* theOffscreen );
  28. tWindowOffscreen* DisposeOffscreen ( tWindowOffscreen* theOffscreen );
  29.  
  30.  
  31.